<template>
  <div class="container-fluid flex-center">
    <div class="download-wrap">
      <div class="d-top flex-center">
        <div class="d-phone">
          <div class="phonebg"></div>
          <!--    -->
          <div class="my-swipe-wrap">
            <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
              <van-swipe-item>
                <img src="~static/image/download/pic1.png" alt class="lunbo" />
              </van-swipe-item>
              <van-swipe-item>
                <img src="~static/image/download/pic2.png" alt class="lunbo" />
              </van-swipe-item>
              <van-swipe-item>
                <img src="~static/image/download/pic3.png" alt class="lunbo" />
              </van-swipe-item>
            </van-swipe>
          </div>
        </div>
        <div class="d-info">
          <h2 class="margin-b">手机中的网校</h2>
          <h3 class="margin-b">移动中的课堂</h3>
          <p class="margin-b">点击下载各平台APP</p>
          <div class="download-group margin-b">
            <div>Android</div>
            <div>IOS</div>
          </div>
          <div>
            <img src="~static/image/download/code.png" alt />
          </div>
        </div>
      </div>
      <div class="d-bottom flex-center">Copyright@ 北京龙德天成教育科技有限公司 版权所有</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {}
};
</script>

<style scoped lang='less'>
.my-swipe-wrap {
  width: 98%;
  margin: 0 auto;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
}
.download-wrap {
  width: 900px;
  height: 90vh;
  margin: 0 auto;
  // border: 1px solid #ccc;
  color: #fff;
  .d-top {
    height: 85%;
    .d-phone {
      position: relative;
      width: calc(90vh * 0.85 * 0.8 / 2);
      height: 80%;
      // border: 1px solid #ccc;
      border-radius: 30px;
      background-color: #0d23a3;
      overflow: hidden;
      z-index: 999;
      .phonebg {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        bottom: 0;
        background: url("~static/image/download/phone.png") center/cover
          no-repeat;
        z-index: 9999;
      }
      .van-swipe-item {
        width: 100%;
        overflow: hidden;
        .lunbo {
          width: 88%;
          z-index: -10;
          margin-left: 6%;
          margin-top: 6%;
        }
      }
    }
    .d-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 500px;
      h2 {
        color: #0ae3f7;
        font-size: 42px;
      }
      h3 {
        font-size: 28px;
      }
      p {
        font-size: 18;
      }
    }
  }
  .d-bottom {
    height: 15%;
  }
}
.download-group {
  width: 280px;
  display: flex;
  justify-content: space-around;
  & > div {
    width: 90px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
  }
}
.margin-b {
  margin-bottom: 15px;
}
</style>